#include "testing.h"
#include "ui_testing.h"
#include "qpainter.h"

testing::testing(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::testing)
{
    ui->setupUi(this);
}

void testing::paintEvent(QPaintEvent *)
 {
     QStyleOption opt;
     opt.init(this);
     QPainter p(this);
     style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
 }

testing::~testing()
{
    delete ui;
}
